package com.nbsaas.boot.marketing.rest.convert;

import com.nbsaas.boot.marketing.data.entity.FlashSaleProduct;
import com.nbsaas.boot.marketing.api.domain.response.FlashSaleProductResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 秒杀商品-实体对象转化成响应对象
*/

public class FlashSaleProductResponseConvert  implements Converter<FlashSaleProductResponse,FlashSaleProduct> {

    @Override
    public FlashSaleProductResponse convert(FlashSaleProduct source) {
        FlashSaleProductResponse  result = new  FlashSaleProductResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

